package Modules
{
	import mx.utils.ObjectUtil;
	
	public class NavigationDetails
	{
		private var _tabID:String;
		private var _menuID:String;
		private var _pkid:String;
		private var _mode:String;

		public function NavigationDetails(tabID:String, menuID:String, pkid:String=null, mode:String = "view")
		{
			_tabID = tabID;
			_menuID = menuID;
			_pkid = pkid;
			_mode = mode;
		}

		public function get tabID():String{
			return _tabID;
		}
		
		public function get menuID():String{
			return _menuID;
		}
		
		public function get pkID():String{
			return _pkid;
		}
		public function set pkID(value:String):void{
			_pkid = value;
		}

		public function get mode():String{
			return _mode;
		}
		public function set mode(value:String):void{
			_mode = value;
		}
		
		public function copy():NavigationDetails{
			return new NavigationDetails(
											(_tabID==null)?null:new String(_tabID)
										, 	(_menuID==null)?null:new String(_menuID)
										, 	(_pkid==null)?null:new String(_pkid)
										, 	(_mode==null)?null:new String(_mode)
										);
		}

	}
}